package main

import (
	"fmt"
)

func main() {
	var str string
	fmt.Println("请输入要统计的字符串：")
	fmt.Scanln(&str)
	var num_count int = 0
	var Up_char_count int = 0
	var Down_char_count int = 0
	for _, i := range str {
		if i >= '0' && i <= '9' {
			num_count++
		}
		if i >= 'a' && i <= 'z' {
			Down_char_count++
		}
		if i >= 'A' && i <= 'Z' {
			Up_char_count++
		}
	}
	fmt.Printf("数字个数：%d,大写字母个数：%d,小写字母个数：%d", num_count, Up_char_count, Down_char_count)
}
